package org.example.dao.entity.user;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * (UAddress)实体类
 *
 * @author makejava
 * @since 2023-09-13 08:57:06
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UAddress implements Serializable {
    private static final long serialVersionUID = -87163884808617333L;
    
    private Long id;
    /**
     * 名称 备注
     */
    private String title;
    
    private Long userId;
    
    private String schoolName;
    
    private String dormitoryBuilding;
    
    private String houseNumber;
    
    private String name;
    
    private String mobile;
    
    private String province;
    
    private String city;
    
    private String region;
    
    private Integer isValid = 1;

    private Date createTime = new Date();

    private Date updateTime = new Date();

    public UAddress(Long id, String title, Long userId, String schoolName,
                    String dormitoryBuilding, String houseNumber, String name,
                    String mobile, String province, String city, String region) {
        this.id = id;
        this.title = title;
        this.userId = userId;
        this.schoolName = schoolName;
        this.dormitoryBuilding = dormitoryBuilding;
        this.houseNumber = houseNumber;
        this.name = name;
        this.mobile = mobile;
        this.province = province;
        this.city = city;
        this.region = region;
    }
}